package com.Enums;

/**
 * @author 13699
 */

public enum OverrideConstantSpecific {
    NUT,BOLT,WASHER{
      @Override
      void f(){
          System.out.println("Overridden method");
      }
    };

    void f(){
        System.out.println("default behavior");
    }

    public static void main(String[] args) {
        for (OverrideConstantSpecific ocs:
             values()) {
            System.out.println(ocs+":");
            ocs.f();
        }
    }
}
